package com.heima.apis.behavior;

import com.heima.model.behavior.dtos.LikesBehaviorDto;
import com.heima.model.behavior.pojos.ApLikesBehavior;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "保存行为", tags = "保存行为", description = "保存行为API")
public interface ApLikesBehaviorControllerApi {

    /**
     * 保存点赞行为
     *
     * @param dto
     * @return
     */
    @ApiOperation("保存点赞")
    ResponseResult like(LikesBehaviorDto dto);

    /**
     * 根据行为实体id和文章id查询点赞行为
     * @return
     */
    public Integer findLikeByArticleIdAndEntryId(Long articleId, Integer entryId, Short type);

}